﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KhuVuc.ascx.cs" Inherits="WebHousingInfo.Controls.KhuVuc" %>
<div id="khuvuc_200">
    <div class="title">KHU VỰC</div>
        <div class="content">   
       <% 
        var objectAreas = HousingInfo.Library.AreaBOList.GetAreaBOList();
        foreach (var obArea in objectAreas)
        {
            if (obArea.IsActive == true)
            { %>              
                <div class="data">
                    <p>
                    <img src="Image/folder.gif" border="0" alt="NoImage" />
                    <a href="#"><%=obArea.AreaName.ToUpper() %>
                    </a></p>
                </div>
                <%var objectAreaDetails = HousingInfo.Library.AreaBO.GetAreaBO(obArea.AreaID).AreaDetailBOList;
                   foreach(var obAreaDetail in objectAreaDetails)
                   {
                        if(obAreaDetail.IsActive==true)
                        {%>
                            <div class="data">
                                <p>
                                <img src="Image/left_nav_arrow.gif">
                                <a href="#"><%=obAreaDetail.AreaDetailName %>
                                </a></p>
                            </div>   
                        <%}
                   }
                       %>
                
            <%}
        }
    %>     
    </div>
</div>